package com.hellogood.yaohuo.server.serviceImpl;

import java.util.List;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.hellogood.yaohuo.server.mgr.factory.MgrFactory;
import com.hellogood.yaohuo.shared.entity.GroupUser;
import com.hellogood.yaohuo.shared.entity.User;
import com.hellogood.yaohuo.shared.services.GroupUserService;
import com.hellogood.yaohuo.shared.vo.GroupVo;

@SuppressWarnings("serial")
public class GroupUserServiceImpl extends RemoteServiceServlet implements GroupUserService{

	@Override
	public List<GroupVo> getAllGroupUserList() {
		return MgrFactory.getInstance().createGroupUserMgr().getGroupUser();
	}

	@Override
	public String updateUserListForGroup(List<User> userList, String groupCode) {		
		return MgrFactory.getInstance().createGroupUserMgr().updateUserToGroup(userList, groupCode);
	}

	@Override
	public List<GroupUser> getGoupUserByGroupCode(String groupCode) {		
		return MgrFactory.getInstance().createGroupUserMgr().getGroupUserByGroupCode(groupCode);
	}

}
